<script setup>
import CommonAside from '@/components/CommonAside.vue';
import CommonHeader from '@/components/CommonHeader.vue';
import CommonTab from '@/components/CommonTab.vue';
</script>

<template>
<div class="common-layout">
    <el-container class="lay-container">
        <!--自定义左侧的组件 -->
        <common-aside/>
        <!-- 右侧 -->
        <el-container>
            <!-- 头部 -->
            <el-header>
                <common-header/>
                <!-- 这里有面包屑 -->
            </el-header>
            <!-- 这里是路由名称 -->
            <CommonTab />
            <!-- 主内容区域 -->
            <el-main class="right-main">
                <!-- 二级路由 -->
                 <router-view></router-view>
            </el-main>
        </el-container>
    </el-container>
</div>
</template>

<style scoped lang="less">
   .common-layout,.lay-container{
      height:100%;
   }
   .el-header{
      background-color:#333;
   }
</style>
